package atm.com.controller.admin;


import atm.com.pojo.Admin;
import atm.com.service.admin.AdminServiceInf;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * AdminController class
 * @author di zhang
 * @date 2021/8/24
 */
@CrossOrigin
@RestController
public class AdminController {
    @Autowired
    private AdminServiceInf adminServiceInf;

    @RequestMapping("/AdminLogin")
    public String adminLogin(Admin admin){
        adminServiceInf.GetAdmin(admin);
        return null;
    }



}
